package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.Form.DayForm;
import com.example.demo.Form.MonthForm;
import com.example.demo.Form.WeekForm;
import com.example.demo.Form.WeekGrowth;
import com.example.demo.entity.DoAlertDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface DoAlertMapper extends BaseMapper<DoAlertDO> {
    List<DayForm> statisticByDay();
    List<WeekForm> statisticByWeek();
    List<MonthForm> statisticByMonth();
    List<WeekGrowth> growthByWeek();
    Page<DayForm> GetPageDay(@Param("page") Page<DayForm> page,@Param("monitorType") Integer monitorType,
                             @Param("tableId") String tableId,@Param("createTime")String createTime,
                             @Param("workspaceId")Integer workspaceId);
    Page<WeekForm> GetPageWeek(@Param("page") Page<WeekForm> page,@Param("monitorType") Integer monitorType,
                             @Param("tableId") String tableId,@Param("createTime")String createTime,
                             @Param("workspaceId")Integer workspaceId);
    Page<MonthForm> GetPageMonth(@Param("page") Page<MonthForm> page,@Param("monitorType") Integer monitorType,
                              @Param("tableId") String tableId,@Param("createTime")String createTime,
                              @Param("workspaceId")Integer workspaceId);


}
